<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Requests\UserContext;
use App\Http\Services\TradeService;
use App\Http\Traits\ResponseJson;

class TradeController extends Controller
{
    use ResponseJson;

    protected $tradeService;

    public function __construct(TradeService $tradeService)
    {
        $this->tradeService = $tradeService;
    }

    public function toPay(UserContext $userContext)
    {
        $data = $this->tradeService->toPay($userContext);
        return $this->returnJson($data);
    }


}
